package com.lazyfish.superdir.dao;


import com.lazyfish.superdir.entity.Dir;
import com.lazyfish.superdir.entity.Student;
import com.lazyfish.superdir.entity.StudentPositive;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
@Primary
public interface StudentPositiveDao {
    @Select("SELECT * FROM student_positive WHERE name =#{name} AND _class like CONCAT('%',#{_class},'%')")
    StudentPositive getStudentPositive(@Param("name") String name ,@Param("_class") String _class);
}
